package com.shuma.product.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.shuma.common.vo.R;
import com.shuma.product.pojo.GoodsBaseInfo;

import com.shuma.product.pojo.GoodsDetailInfo;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

/**
 * @author 23083
 * @description 针对表【goods_base_info】的数据库操作Service
 * @createDate 2024-06-16 21:13:27
 */
@Service
public interface GoodsBaseInfoService extends IService<GoodsBaseInfo> {
    R getgoodsByoperatorid(Long id,Integer pagenum,Integer pagesize,
                           Long goodsonlinestatus,
                           Long goodsbaseid,
                           String goodsname,
                           LocalDateTime onlinetime,
                           LocalDateTime expiretime,
                           String operatorname,
                           String role);
    R getgoodsBybaseGoodsid(Long id) throws InterruptedException;
    R updateonlineBaseGood(Long id,Integer onlinestatus) throws InterruptedException;
    R updateBaseDetailGood(GoodsBaseInfo goodsBaseInfo, GoodsDetailInfo goodsDetailInfo) throws InterruptedException;
    R addBaseDetailGood(GoodsBaseInfo goodsBaseInfo, GoodsDetailInfo goodsDetailInfo) throws InterruptedException;
    R deleteBaseDetailGood(Long id) throws InterruptedException;
}
